
package com.feib.soeasy.service;

import org.springframework.transaction.annotation.Transactional;

import com.feib.soeasy.model.MailQueue;


/**
 * @title (#)MailQueueService.java<br>
 * @description <br>
 * @author Jimmy Liu<br>
 * @version 1.0.0 2010/11/25
 * @copyright Far Eastern International Bank Copyright (c) 2010<br>
 * @2010/12/4 create by Jimmy Liu<br>
 */
@Transactional(readOnly = true)
public interface MailQueueService {
    
    /**
     * 依據主鍵取得MailQueue物件
     * @param mailQueuePk
     * @return
     */
    public MailQueue queryByPk(Long mailQueuePk);
    
    /**
     * 取得尚未發送MailQueue物件
     * @return null 無待送郵件
     */
    public MailQueue getUnSendMail();

    @Transactional(readOnly = false)
    public MailQueue updateMailStatus(MailQueue mailQueue);

}
